package top.blackr.folivora.common.security.auth;

import cn.dev33.satoken.stp.SaTokenInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 当前登陆用户信息
 *
 * @author BlackR
 */
@Data
public class SecUser {

    private Long userId;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "登陆账号")
    private String username;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "部门名称")
    private Integer deptId;
    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "token信息")
    private SaTokenInfo tokenInfo;

    @Schema(description = "角色列表")
    private List<String> roles;
    @Schema(description = "权限列表")
    private List<String> permissions;
}
